<template>
  <Child :title="title" @update-title="title = $event"></Child>
</template>

<script>
import Child from './components/Child.vue'

export default {
  components: {
    Child
  },
  data() {
    return {
      title: 'hello'
    }
  },
  methods: {
    updateTitle(title) {
      this.title = title
    }
  },
}
</script>
